IAxis.Home 方法
命令軸執行 "尋找原點" 序列。偵測到索引訊號時,可使用 Position 輸入來設定絕對位置,若此方法在靜止 (Standstill) 時開始,則會在靜止 (Standstill) 時完成。
命名空間:IntervalZero.KINGSTAR.Base.Class組合: IntervalZero.KINGSTAR.Base.Class (於 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0
語法
IHomeCommand Home(
double position,
double velocity,
double endVelocity,
double acceleration,
double deceleration,
double jerk,
McDirection direction,
McHomingMode homingMode
)
Function Home(
position As Double,
velocity As Double,
endVelocity As Double,
acceleration As Double,
deceleration As Double,
jerk As Double,
direction As McDirection,
homingMode As McHomingMode
)As IHomeCommand
參數
position
型別:double
偵測到索引訊號時設定絕對位置。[單位]
velocity
型別:double
原點復歸移動的起始速度。
endVelocity
型別:double
原點復歸移動的結束速度。使用方式依原點復歸模式而定。
acceleration
型別:double
加速度值。
deceleration
型別:double
減速度值。
jerk
型別:double
加加速度值。
direction
型別:McDirection
軸移動回原點的方向,使用 McDirection 中的 0、2 或 3 類型。
homingMode
型別:McHomingMode
選擇一個原點復歸模式。
回傳值
型別:IHomeCommand
回傳一個原點復歸的屬性。
備註
- 使用增量編碼器時,馬達啟動時的馬達位置是未知的,須搜尋已知的參考位置才能得知馬達的位置,此即稱為原點復歸。
- 在
homingSlave
模式下,需先使用 SlaveHomeOffset 與 SlaveHomingMode 屬性來設定mcSlaveHomingMode
與mcSlaveHomeOffset
。
參見